package com.example.sls.service.impl.social;

import com.example.sls.pojo.user.Notifications;
import com.example.sls.dao.user.NotificationsDao;
import com.example.sls.service.intserfaces.social.NotificationsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 消息通知表(Notifications)表服务实现类
 *
 * @author 蓝江富
 * @since 2024-06-18 10:55:15
 */
@Service
public class NotificationsServiceImpl implements NotificationsService {
  @Autowired
  NotificationsDao notificationsDao;

  @Override
  public Notifications queryById(Integer id) {
    return notificationsDao.queryById(id);
  }

  @Override
  public int deleteById(Integer id) {
    return notificationsDao.deleteById(id);
  }

  @Override
  public int update(Notifications notifications) {
    return notificationsDao.update(notifications);
  }

  @Override
  public int insert(Notifications notifications) {
    return notificationsDao.insert(notifications);
  }

  @Override
  public long count() {
    return notificationsDao.count();
  }

  @Override
  public List<Notifications> queryAllByLimit(Notifications notifications, Integer pageSize, Integer offset) {
    return notificationsDao.queryAllByLimit(notifications, pageSize, offset);
  }
}
